package b2.player.dataModel
{
	import b2.player.event.ObjWithNumEvent;
	
	import flash.events.EventDispatcher;
	
	public class ObjWithNum extends EventDispatcher
	{
		public var obj:Obj;
		
		public var num:int;
		
		public function ObjWithNum(obj:Obj, num:int)
		{
			this.obj = obj;
			this.num = num;
		}
		
		public function setNum(num:int):void
		{
			this.num = num;
			dispatchEvent(new ObjWithNumEvent(ObjWithNumEvent.UPDATE_NUM));
		}
	}
}